<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%@include file="/common/common.jspf" %>
    <%--下拉搜索框除了依赖下面两个以外还依赖了bootstrap的相关组件以及jquery.js，
jquery.js和lyGrid.js会有冲突，注意位置    jquery.js放在lyGrid.js上面--%>
    <link rel="stylesheet" href="${ctx}/js/date/bootstrap_select.min.css">
    <script src="${ctx}/js/date/bootstrap_select.min.js"></script>

    <script type="text/javascript" src="${ctx}/js/system/user/add.js">
    </script>
    <style type="text/css">
        .col-sm-3 {
            width: 15%;
            float: left;
        }

        .col-sm-9 {
            width: 85%;
            float: left;
        }
        label[class^="btn btn-default"]{
            margin-top: -4px;
        }
    </style>
</head>
<body>
<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post"
      action="${ctx}/devicetype/devicetype_addEntity.shtml">
    <section class="panel panel-default">
        <div class="panel-body">
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备种类名称</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control checkName"
                           placeholder="请输入设备名称" name="deviceTypeFormMap.deviceTypeName" id="deviceTypeName">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备型号</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control checkName"
                           placeholder="请输入设备型号" name="deviceTypeFormMap.deviceTypeModel" id="deviceTypeModel">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备规格</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control checkName"
                           placeholder="请输入设备规格" name="deviceTypeFormMap.deviceTypeSpec" id="deviceTypeSpec">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备供应商</label>
                <div class="col-sm-9">
<%--                    <input type="text" class="form-control checkName"--%>
<%--                           placeholder="请输入设备供应商" name="deviceTypeFormMap.deviceTypeSupplier" id="deviceTypeSupplier">--%>
                    <select data-live-search="true" class="form-control selectpicker show-tick" name="deviceTypeFormMap.clientId" id="clientId">
                        <c:forEach items="${list}" var="li">
                            <option value="${li.clientId}">${li.clientComName}</option>
                        </c:forEach>
                    </select>
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">设备生产商</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control checkName"
                           placeholder="请输入设备生产商" name="deviceTypeFormMap.deviceTypeProducer" id="deviceTypeProducer">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">台数</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control checkName"
                           placeholder="请输入设备台数" name="deviceTypeFormMap.deviceTypeQuantity" id="deviceTypeQuantity">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">保修期</label>
                <div class="col-sm-9">
                    <%--<input type="date" class="form-control checkabh" name="deviceFaultFormMap.deviceend" id="deviceend">--%>
                    <input type="date" class="form-control checkabh"
                           placeholder="请输入保修期" name="deviceTypeFormMap.deviceTypeWarranty" id="deviceTypeWarranty">
                </div>
            </div>

        </div>
        <footer class="panel-footer text-right bg-light lter">
            <button type="submit" class="btn btn-success btn-s-xs">提交</button>
        </footer>
    </section>
</form>
<script type="text/javascript">
    $(document).ready(function(){
        $('select').selectpicker();

    });
</script>
</body>
</html>